//
//  ScanCodeVIewController.m
//  qunfa
//
//  Created by Admin on 2017/8/10.
//  Copyright © 2017年 cuixiaocun. All rights reserved.
//

#import "ScanCodeVIewController.h"

@interface ScanCodeVIewController ()
{

    UIImageView *touImgV;
    UIImageView*mainImgView;
    NSString *erweima;//二维码


}
@end

@implementation ScanCodeVIewController
-(void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBarHidden =YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    NavgationView *nav =[[NavgationView alloc]initWithFrame:CGRectMake(0, 0, CXCWidth, 64) with:@"桥通天下" isBackBtn:@"YES" rightBtnName:@"NO"];
    [self.view addSubview:nav];
    nav.navLabel.text =@"山东桥通天下";
    self.view.backgroundColor =BGColor;
    [self mainView];
}
- (void)mainView
{
    mainImgView =[[UIImageView   alloc]initWithFrame:CGRectMake(60*Width, 200*Width, 630*Width,630*Width)];
    [mainImgView setUserInteractionEnabled:YES];
    [mainImgView setBackgroundColor:[UIColor whiteColor]];
    [mainImgView.layer setBorderWidth:5.0*Width];
    mainImgView.image =[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://login.weixin.qq.com/qrcode/%@",erweima]]]];
    [mainImgView.layer setMasksToBounds:YES];
    mainImgView.layer.borderColor =NavColor.CGColor;
    [self.view addSubview:mainImgView];
    
    touImgV =[[UIImageView alloc]initWithFrame:CGRectMake(225*Width, 225*Width, 180*Width,180*Width)];
    [touImgV setUserInteractionEnabled:YES];
    [touImgV setBackgroundColor:[UIColor yellowColor]];
    [touImgV setImage:[UIImage imageNamed:@"proxy_me_icon_orderliu"]];
    [touImgV.layer setBorderWidth:5.0*Width];
    [touImgV.layer setMasksToBounds:YES];
    touImgV.layer.borderColor =[UIColor whiteColor].CGColor;
    [mainImgView addSubview:touImgV];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
